﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ClassManager_PRODUCT_SMALLTYPE : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void hideButton_Click(object sender, EventArgs e)
    {
        String recordID = Request["__EVENTARGUMENT"].ToString();

        EntityOprHelper helper = new EntityOprHelper();
        String StrSQL = "delete from T_PRODUCT_SMALLTYPE where ID=" + recordID + "";
        bool b = helper.DelEntityBySql(StrSQL);

        if (b)
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "", "alert('删除成功!')", true);
            RecordControl2.UpdataPage();
        }
        else
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "", "alert('删除失败!')", true);
        }
    }
}
